import request from "@/utils/request.js";

export const listArticleComment = (params)=>{
    return request.get('/comment/listArticleComment',{params:params})
}
export const listPoiComment = (params)=>{
    return request.get('/comment/listPoiComment',{params:params})
}

export const deleteArticleComment = (id)=>{
    return request.delete('/comment/deleteArticleComment?commentId'+id)
}

export const deletePoiComment = (id)=>{
    return request.delete('/comment/deletePoiComment?commentId='+id)
}

export const updateArticleComment = (commentData)=>{
    return request.put('/comment/updateArticleComment',commentData)
}

export const updatePoiComment = (commentData)=>{
    return request.put('/comment/updatePoiComment',commentData)
}